const { app } = require('electron');

const path = require('path');
const regex = /locales.*/;
const proResourcePath = path.join(__dirname.replace(regex, ''), 'resources');
const devResoucePath = path.join(app.getAppPath(), '../');
const resourcePath = __dirname.includes('locales') ? proResourcePath : devResoucePath;

const dataPath = path.join(resourcePath, 'data');
const binPath = path.join(resourcePath, 'bin');
const ffmpegPath = path.join(binPath, 'ffmpeg.exe');
const screenImgPath = path.join(dataPath, 'screen.png');

const propPath = path.join(dataPath, 'prop');
const framePath = path.join(dataPath, 'frame');
module.exports = {
    resourcePath,
    dataPath,
    binPath,
    ffmpegPath,
    screenImgPath,
    framePath,
    propPath,
}